package com.yohann.boot.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * ThreadLocal统一管理
 *
 * @author Yeung Wah
 * @since 2021/11/14
 */
public interface ThreadLocalHolder {

    ThreadLocal<Map<String, Object>> MAP = ThreadLocal.withInitial(HashMap::new);

    ThreadLocal<List<String>> LIST = ThreadLocal.withInitial(ArrayList::new);

}